<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class StudentActionPoop extends Validate
{
    protected $rule = ['student_id' => 'require|number','add_time' => 'require|number','action_info' => 'require',
    ];

    protected $message = ['student_id.require' => '学生ID为必填项','student_id.number' => '学生ID需为数字','add_time.require' => '发布时间为必填项','add_time.number' => '发布时间需为数字','action_info.require' => '特别说明为必填项',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['student_id','add_time','action_info',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['student_id','add_time','action_info',]);
    }
}
